package com.handle.system.api.request.user;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhangqing
 * @description 用户添加请求参数
 * @date 2021/7/6 3:47 下午
 */
@Data
public class UserAddParam{


    @NotNull(message = "租户code不能为空")
    @ApiModelProperty(value = "租户code",required = true)
    private String tenantCode;

    @NotNull(message = "部门不能为空")
    @ApiModelProperty(value = "部门id",required = true)
    private Long deptId;

    @NotNull(message = "登录账号不能为空")
    @ApiModelProperty(value = "登录账户",required = true)
    private String loginName;

    @NotNull(message = "用户昵称不能为空")
    @ApiModelProperty(value = "用户昵称",required = true)
    private String userName;

    @ApiModelProperty(value = "用户类型(00:系统用户,01:app用户)")
    private String userType;

    @ApiModelProperty(value = "用户邮箱")
    private String email;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "用户性别（0:男 1:女 2:未知)")
    private String sex;

    @ApiModelProperty(value = "用户头像")
    private String headPortrait;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "帐号状态（1正常 0停用）")
    private Boolean status;

    @ApiModelProperty(value = "删除标志（0:代表存在 1:代表删除）")
    private Boolean delFlag;

    @ApiModelProperty(value = "备注")
    private String remark;

    @NotNull(message = "角色不能为空")
    @ApiModelProperty(value = "角色ID",required = true)
    private List<Long> roleIds;
}
